/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*  Copyleft (!c) 2004 Div. Nucl. Med., Cyric, Tohoku Univ.         *
*  Copyleft (!c) 2004-2011 Elseif Laboratory.                      *
*  elseifkk@users.sf.net                                           *
*                                                                  *
*  All Rights Reversed.                                            *
*                                                                  *
*                                                                  *
*  LICENSE AGREEMENT:                                              *
*                                                                  *
*  You agree that we don't agree to anything.                      *
*                                                                  *
*                                                                  *
*  DISCLAIMER OF WARRANTIES:                                       *
*                                                                  *
*  This software is provided to you "AS IS," and the authors and   *
*  contributors disclaim any warranty or liability obligations to  *
*  you of any kind, implied or express, including but not limited  *
*  to the warranties of merchantability, fitness for a particular  *
*  purpose, and non-infringement.                                  *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#ifndef FBP_CTI_H
#define FBP_CTI_H

//
#define PROGRAM "fbp4cti version 1.9.7\n    Copyleft (!c) 2004 Div. Nucl. Med., Cyric, Tohoku Univ.\nfbp_cti version 1.9.8\n    Copyleft (!c) 2011 Elseif Laboratory."
#define _nXmax_  512 // maximum number of column of image
#define _nYmax_  512 // maximum number of row of image
#define _nt_     256 // number of projection direction
#define _nx_     192 // number of sinogram sampling
#define _BS_     512 // header size in byte
#define _BFS_      2 // buffer size in _nx_
#define _DATABYTE_ 2 // byte size of image
#define  _nfx_  (_nx_/2*(_BFS_*3))
int const _ix0_ = _nx_/2;
//---------------------------------------------
#define IDF_SHEPP_LOGAN         6
#define IDF_NONE                0
#define IDF_RAM_LAK             1
#define IDF_RAM_LAK_HANNING     3
#define IDF_RAM_LAK_HAMMING     4
#define IDF_SHEPP_LOGAN_HANNING 7
#define IDF_SHEPP_LOGAN_HAMMING 8
//---------------------------------------------
#define HID_MAIN                0
#define HID_MATREC              1
#define HID_SUB                 2
//---------------------------------------------
#define FID_SCAN                1
#define FID_IMAGE               2 
//-------------------------------------------------------------
double const  PI  = 0x3.243F6A8885A308D313198A2E03707344Ap0;
double const  PI2 = 0x3.243F6A8885A308D313198A2E03707344Ap1;
double const  PIH = 0x3.243F6A8885A308D313198A2E03707344Ap-1;
//-------------------------------------------------------------
#define ZOOM_SET            0x00000001
#define FILTER_SET          0x00000002
#define ROT_SET             0x00000004
#define DX_SET              0x00000008
#define DY_SET              0x00000010
#define IDX_SET             0x00000020
#define IDY_SET             0x00000040
#define GWcm_SET            0x00000080
#define GWpx_SET            0x00000100
#define DIMENSION_SET       0x00000200
#define FORCE_OVERWRITE     0x00000400
#define VERBOSE             0x00000800
#define TAKE_AREA_SUM       0x00001000
#define QUIET               0x00002000
#define HELP                0x00004000
#define TO_STDOUT           0x00008000
#define TO_SAME_FILE        0x00010000
#define ALLOW_NEGATIVE      0x00020000
#define KEEP_CASE           0x00040000
#define FORCE_POSITIVE      0x00080000
#define DISABLE_SCALE_FCTR  0x00100000
#define ENLIGHTENED         0x00200000
#define DONOT_RENORM        0x00400000
#define NO_DECAY_CORRECTION 0x00800000
//---------------------------------------------
#define TOO_MANY_SINOGRAM   0x01000000
#define TOO_FEW_SINOGRAM    0x02000000

//
#endif
